package com.whmskj.xjlhsc.panel.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.whmskj.xjlhsc.controller.vo.Result;
import com.whmskj.xjlhsc.panel.pojo.vo.SpinningVO;
import com.whmskj.xjlhsc.panel.service.imp.SpinningServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jiaruchun
 * @date 2025-09-12 14:37
 * @Description:  细纱看板接口
 */
@SaIgnore
@RestController
@RequestMapping("/panel/spinning")
public class SpinningController {

    @Autowired
    private SpinningServiceImpl spinningService;

    @GetMapping
    public Result getSpinningPanelData(){
        SpinningVO spinningPanelData = spinningService.getSpinningPanelData();
        return Result.success(spinningPanelData);
    }

}
